package cn.com.jenson.util;

import java.io.File;

/**
 * 目录工具类
 */
public class CatalogueUtil {

    /**
     * 判断 目录是否存在
     * @param uploadPath 路径
     * @return 存在 / 不存在
     */
    private boolean checkDirExists(String uploadPath) {
        File uploadDir = new File(uploadPath);
        if (!uploadDir.exists()) {
            return uploadDir.mkdir();
        }
        return true;
    }
}
